package gui;


import javax.swing.JMenuBar;

/**
 * The MenuBar
 * @author vincenzo.delia@polito.it
 *
 */
@SuppressWarnings("serial")
public class CommandMenuBar extends JMenuBar  {
	
	private MainFrame mainFrame;
	
	/**
	 * Class constructor
	 * @param frame
	 */
	public CommandMenuBar(MainFrame frame) {
		super();
		this.mainFrame = frame;
		this.add(new FileMenu(this));
		this.add(new ToolsMenu(this));
		this.add(new HelpMenu(this));
	}
	
	public MainFrame getMainFrame() {
		return this.mainFrame;
	}
}
